package com.dji.sample.wayline.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

@TableName("waypoint")
@Data
public class Waypoint {

        @TableField("wayline_id")
        private String waylineId;

        @TableField(value = "`index`")
        private int index;
        private double longitude;
        private double latitude;
        private double altitude;

        @TableField("gimbal_pitch_angle")
        private double gimbalPitchAngle;

        @TableField("use_global_speed")
        private boolean useGlobalSpeed;

        @TableField("use_global_heading")
        private boolean useGlobalHeading;

        @TableField("take_off_security_height")
        private double takeOffSecurityHeight;

//        // Getters and Setters
//        public int getIndex() { return index; }
//        public void setIndex(int index) { this.index = index; }
//
//        public double getLongitude() { return longitude; }
//        public void setLongitude(double longitude) { this.longitude = longitude; }
//
//        public double getLatitude() { return latitude; }
//        public void setLatitude(double latitude) { this.latitude = latitude; }
//
//        public double getAltitude() { return altitude; }
//        public void setAltitude(double altitude) { this.altitude = altitude; }
//
//        public double getGimbalPitchAngle() { return gimbalPitchAngle; }
//        public void setGimbalPitchAngle(double gimbalPitchAngle) { this.gimbalPitchAngle = gimbalPitchAngle; }
//
//        public boolean isUseGlobalSpeed() { return useGlobalSpeed; }
//        public void setUseGlobalSpeed(boolean useGlobalSpeed) { this.useGlobalSpeed = useGlobalSpeed; }
//
//        public boolean isUseGlobalHeading() { return useGlobalHeading; }
//        public void setUseGlobalHeading(boolean useGlobalHeading) { this.useGlobalHeading = useGlobalHeading; }
//
//        @Override
//        public String toString() {
//            return "Waypoint{" +
//                    "index=" + index +
//                    ", lng=" + longitude +
//                    ", lat=" + latitude +
//                    ", alt=" + altitude +
//                    ", gimbal=" + gimbalPitchAngle + "°" +
//                    '}';
//        }
    }